using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityShippingAddressesUpdateExtend
{
		public static ShippingAddresses ToUpdateEntity(this RequestShippingAddressesDto dto)
		{
			return new ShippingAddresses
			{
				SaDetaiedlAddress = dto.detaiedlAddress,
				SaId = dto.id,
				SaPostalCode = dto.postalCode,
				SaRecipientName = dto.recipientName,
				SaRecipientPhone = dto.recipientPhone,
			};
		}
	}
}
